package com.situ.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_address")
@Schema(description = "地址")
public class TAddress {
    @TableId
    @Schema(description = "地址id")
    private Integer aid;

    @Schema(description = "用户id")
    private Integer uid;

    @Schema(description = "收货人")
    private String name;

    @Schema(description = "省")
    private String provinceName;

    @Schema(description = "省编码")
    private String provinceCode;

    @Schema(description = "市")
    private String cityName;

    @Schema(description = "市编码")
    private String cityCode;

    @Schema(description = "区")
    private String areaName;

    @Schema(description = "区编码")
    private String areaCode;

    @Schema(description = "邮编")
    private String zip;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "手机")
    private String phone;

    @Schema(description = "固话")
    private String tel;

    @Schema(description = "标签")
    private String tag;

    @Schema(description = "是否默认地址")
    private Integer isDefault;

    @Schema(description = "创建人")
    private String createdUser;

    @Schema(description = "创建时间")
    private Date createdTime;

    @Schema(description = "修改人")
    private String modifiedUser;

    @Schema(description = "修改时间")
    private Date modifiedTime;
}